package com.lizhivscaomei.dueros.tobaccoguider.repo;

import com.lizhivscaomei.dueros.tobaccoguider.entity.TobaccoInfo;

import java.util.List;
import java.util.Optional;

public interface TobaccoInfoRepo {

    List<TobaccoInfo> list(TobaccoInfo query);

    Optional<TobaccoInfo> detail(TobaccoInfo query);

    /**
     * 根据卷烟盒子条码查找
     *
     * @param boxCode 卷烟盒子条码
     * @return
     */
    TobaccoInfo findByBoxCode(String boxCode);
}
